﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DevilshMath
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void NextButton_Click(object sender, EventArgs e){
          EquationObject zEquation = new EquationObject();
          OperatorBox.Text = zEquation.Operator.ToString();
          LeftValueBox.Text = zEquation.LeftValue.ToString();
          RightValueBox.Text = zEquation.RightValue.ToString();
          LogBox.AppendText("Equation =" + zEquation.LeftValue.ToString() + zEquation.Operator.ToString() + zEquation.RightValue.ToString() + "=" + zEquation.CalculatedSolution.ToString() + "\r\n");
        }
    }
}
